<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- <div>123</div>
    <div class="box">123</div>
    <div id="a">123</div> -->
    <ul>
        <li>123</li>
        <li>012</li>
        <li>000</li>
    </ul>

    <script>
        // console.log(document.querySelector('div'));
        // console.log(document.querySelector('.box'));
        // console.log(document.querySelector('#a'));
        // const all = document.querySelectorAll('ul li')
        // console.log(all);
        // // console.log(all.length);
        // let newLis = Array.from(all)
        // newLis.push(1)
        // newLis.shift()
        // console.log(newLis);
        let sil = document.querySelectorAll('ul li')
        for (let li of sil) {
            console.log(li);
        }
        let arr = Array.from(sil)
        console.log(arr);
        for (let i = 0; i < arr.length; i++) {
            console.log(i);
        }
        let arrr = [1, 2, 3, 5, 4]
        for (let i of arrr) {
            console.log(i);
        }



    </script>
</body>

</html>